package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name = "张光";
        zg.age = 18;
        zg.address = "石家庄";
        zg.className = "jsd2407";
        zg.stuId = "003";
        zg.eat();
        zg.sayHi();
        zg.sleep();
        zg.study();
        Student li = new Student("李玲",19,"石家庄","jsd2408","002");
        li.eat();
        li.sleep();
        li.sayHi();
        li.study();
        Doctor zs = new Doctor("张三",20,"北京","主治医师");
        zs.eat();
        zs.sayHi();
        zs.sleep();
        zs.cut();
        Teacher ls = new Teacher("李四",23,"北京",6000);
        ls.eat();
        ls.teach();
        ls.sayHi();
        ls.sleep();
    }
}
